package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_live_record")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LiveRecordModel {
    @TableId(type = IdType.AUTO)
    public Integer id;

    private String roomNo;//房间号
    private String roomName;//房间名称
    private Integer userId;//用户ID
    private String coverUrl;//封面图地址
    private Timestamp startTime;//开始直播时间
    private Timestamp endTime;//结束直播时间
    private Timestamp crtTime;//创建时间
    private String faceUrl;//封面图地址
    private String videoUrl;//直播回放地址
    @TableField(exist = false)
    private StringBuffer sb;//推流地址
    @TableField(exist = false)
    private StringBuffer psb;//拉流地址
    @TableField(exist = false)
    private String companyList;
    @TableField(exist = false)
    private String postList;
    @TableField(exist = false)
    private String url;
    private String realName;

    private String introduce;
    @TableField(exist = false)
    private List<LiveCompanyModel> liveCompanyList;

    @TableField(exist = false)
    private List<LiveRecordModel> liveList;
    @TableField(exist = false)
    private int count;
    @TableField(exist = false)
    public String formatTime;//格式化后的时间
    @TableField(exist = false)
    public String positionData;//岗位信息
    @TableField(exist = false)
    public String pushConf;//推拉流配置信息
    @TableField(exist = false)
    public Integer audience;//观众数
    @TableField(exist = false)
    public String waitingImg;//等待背景图片
    @TableField(exist = false)
    public String taskId;//录制视频ID




}
